package mongodb

import (
	"go.mongodb.org/mongo-driver/mongo"
	"go.uber.org/fx"
	"go.uber.org/zap"
	"goproject/pkg/config"
)

func Bootstrap(lc fx.Lifecycle, conf *config.MongoDBConfig, logger *zap.Logger) (*mongo.Database, error) {
	return NewMongoDBStore(lc, (*MongoDBConfig)(conf), logger.Named("dashboard-mongodb-store"))
}
